<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.inc" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base target="_self">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript">
<!--
	/*function searchProcessGroup(){
		var customerName = document.getElementById("customerName");
		if(customerName.value == ""){
			alert("<fmt:message key='openSea.message.search'/>");
		}else{
			document.getElementById("sFlag").value = "1";
			document.cSelectCustomerForm.action = "./contract.do?action=selectCustomer";
			document.cSelectCustomerForm.submit();
		}
	}
	
	function keyDown(){
		if(event.keyCode == 13){
			searchCustomer();
		}
	}*/
	
	function submitSelect(){
		var selectValue = "";
		var radios = document.getElementsByName('id');
		for(var i = 0; i < radios.length; i++){
			if(radios[i].checked){
				selectValue = radios[i].value;
				break;
			}
		}		
		if(selectValue != ""){
			window.returnValue = selectValue;
			self.close();
		}else{
			alert("请选择一个流程！");
		}
	}
-->
</script>
</head>
<body style="margin: 10px 5px 0 5px;">
<form name="cSelectCustomerForm" action="" method="post">
	 <table class="table_input">
		<tr>
			<!-- <td>
				流程组关键字：
				<input id="processGroupName" name="processGroupName" class="input1" value="${processGroupName}" onkeydown="keyDown()"/>&nbsp;
				<a class="view" href="javascript:searchProcessGroup();" title="搜索" hidefocus="true">搜索</a>&nbsp;&nbsp;
				<input id="sFlag" name="sFlag" type="hidden" value="${sFlag}"/>
			</td> -->
			<td align="right">
				<input class="btn1" type="button" value="确 定" onclick="submitSelect()"/>&nbsp;&nbsp;
				<input class="btn1" type="button" value="取 消" onclick="window.close()"/>&nbsp;&nbsp;
			</td>
		</tr>
	</table>
 
 
	<table id="tDept" class="table_style" style="text-align: center;">
		<tr>
			<td class="title4" width="15%">选择</td>
			<td class="title4">流程</td>
		</tr>
		<c:forEach var="process" items="${processList}">
		<tr>
			<td><input id="id" name="id" type="radio" value="${process.id},${process.name}"/></td>
			<td>${process.name}</td>
		</tr>
		</c:forEach>
	</table>
	 
	<!-- page -->
	<!-- 
	<table class="table_page" cellpadding="0" cellspacing="0">
		<tr>
			<td class="title"></td>
			<td class="title">
				${totalRows}&nbsp;<fmt:message key='common.page.totalRow'/>&nbsp;&nbsp;&nbsp;&nbsp;
				<fmt:message key='common.page.totalPage'/>&nbsp;${totalPages}&nbsp;<fmt:message key='common.page'/>&nbsp;&nbsp;&nbsp;&nbsp;
				<fmt:message key='common.page.current'/>&nbsp;${currentPage}&nbsp;<fmt:message key='common.page'/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="./contract.do?action=selectCustomer&flag=1" hidefocus="true"><fmt:message key='common.page.first'/></a>&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="./contract.do?action=selectCustomer&flag=2" hidefocus="true"><fmt:message key='common.page.previous'/></a>&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="./contract.do?action=selectCustomer&flag=3" hidefocus="true"><fmt:message key='common.page.next'/></a>&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="./contract.do?action=selectCustomer&flag=4" hidefocus="true"><fmt:message key='common.page.last'/></a>
			</td>
			<td class="title"></td>
		</tr>
	</table>
	 -->
</form>	
</body>
</html>